package com.bimiaomiao.service01.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.UnknownHostException;

/**
 * @description:
 * @package com.bimiaomiao.service01.web
 * @who MiaoMiao "Sprout" BI
 * @date 2021-02-05 11:31:13
 */
@RestController
@RequestMapping("service01")
public class Service01Controller {

    @Value("${server.port}")
    private int port;

    @GetMapping("demo01")
    public String demo01() throws UnknownHostException {

        return "demo01,端口号:"+port;
    }
}
